import request from '@/util/request'

// 关注
export function like(id) {
  return request(({
    url: `/post/like`,
    method: 'get',
    params: {
        topic_id: id
    }
  }))
}

// 关注
export function unLike(id) {
  return request(({
    url: `/post/unlike`,
    method: 'get',
    params: {
        topic_id: id
    }
  }))
}

// 验证是否关注
export function hasLiked(id) {
  return request(({
    url: `/post/hasliked`,
    method: 'get',
    params: {
        topic_id: id
    }
  }))
}